package com.sgb.kjwl.view.ui.activity.toBeReviewed;

import com.sgb.kjwl.repository.DeviceRepertory;
import com.sgb.kjwl.view.ui.activity.device.DeviceDetailActivity;
import com.swgk.core.base.di.Activity;
import com.swgk.core.base.api.BaseApiSource;
import com.swgk.core.base.model.preference.BasePreferenceSource;

import dagger.Module;
import dagger.Provides;
@Module
public class ToBeReviewModule {
    ReviewListActivity reviewListActivity;

    public ToBeReviewModule(ReviewListActivity reviewListActivity) {
        this.reviewListActivity = reviewListActivity;
    }


    @Provides
    @Activity
    ToBeReviewRepertory provideToBeReviewRepertory(BaseApiSource apiSource, BasePreferenceSource preferenceSource) {
        return new ToBeReviewRepertoryImpl(apiSource, preferenceSource) {
        };
    }


    @Provides
    @Activity
    ToBeReviewModel provideToBeReviewModel(ToBeReviewRepertory repertory) {
        return new ToBeReviewModel(reviewListActivity, repertory);
    }
}
